import requests

# 获取搜狗首页


if __name__ == '__main__':
    #  指定url
    url = "https://www.sogou.com/"

    # 发起请求
    response = requests.get(url=url)
    # 获取响应数据
    print(dir(response))
    page_text = response.text

    # 持久化存储
    with open("./sougou.html","w",encoding="utf-8") as f:
        f.write(page_text)
    print("爬虫结束")